<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
 <%
  int port = request.getServerPort();
  %> 
<html>
<head>
<title>SpringMVC<spring:message code="internationalisation" /></title>
</head>
<body>
<%-- <!-- 中文8080端口 -->
<c:if test="<%=port==8080%>">
<a href="?lang=zh_CN"><spring:message code="language.cn" /></a>
</c:if> 

<!-- 英文8081端口 -->
<c:if test="<%=port==8081%>">
<a href="?lang=en_US"><spring:message code="language.en" /></a>
</c:if> 

<!-- 日文8082端口 -->
<c:if test="<%=port==8082%>">
<a href="?lang=ja_JP"><spring:message code="language.jp" /></a>
</c:if>  --%>
   
    <h2>
        <spring:message code="welcome" />
    </h2>
    <br/>
    
    Locale: ${pageContext.response.locale }
</body>
</html>